package simple;

import javax.comm.CommPortIdentifier;
import javax.comm.SerialPort;

import simple.enums.BaudRate;
import simple.enums.DataBits;
import simple.enums.Parity;
import simple.enums.StopBits;

public class GpsUnit {
	
	CommPortIdentifier commPortId;
	SerialPort port;
	BaudRate baudRate;
	DataBits dataBits;
	StopBits stopBits;
	Parity parity;
	
	public GpsUnit(BaudRate baudRate, DataBits dataBits, StopBits stopBits, Parity parity){
		this.baudRate = baudRate;
		this.dataBits = dataBits;
		this.stopBits = stopBits;
		this.parity = parity;
	}

	public CommPortIdentifier getCommPortId() {
		return commPortId;
	}

	public SerialPort getPort() {
		return port;
	}

	public BaudRate getBaudRate() {
		return baudRate;
	}

	public DataBits getDataBits() {
		return dataBits;
	}

	public StopBits getStopBits() {
		return stopBits;
	}

	public Parity getParity() {
		return parity;
	}
	
	
}
